import { http } from "@/utils/http";

type ResultTable = {
  total?: number;
  data?: Array<any>;
};

//危险废液委外及台账 查询列表
export const wflqueryListPage = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOutDetail/queryListPage`, {
    data
  });
};

//危险废液委外及台账 批量下载
export const wflexport = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOutDetail/liquid/export`, {
    data
  });
};

//危险废弃物入库 查询列表
export const queryListPagepush = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/queryListPage`, {
    data
  });
};

//危险废弃物入库 详情废液
export const queryDetailpush = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/queryLiquidDetail`, {
    data
  });
};

//危险废弃物入库 详情固废
export const queryDetailpush2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/querySolidDetail`, {
    data
  });
};

//危险废弃物入库 新增废液
export const addpush = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/addLiquid`, {
    data
  });
};

//危险废弃物入库 新增固废
export const addpush2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/addSolid`, {
    data
  });
};

//危险废弃物入库 删除
export const deletepush = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/delete`, {
    data
  });
};

//危险废弃物入库 更新
export const updatepush = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/updateLiquid`, {
    data
  });
};

//危险废弃物入库 更新
export const updatepush2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/updateSolid`, {
    data
  });
};

//危险废弃物出库 查询列表
export const queryListPagepull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/queryListPage`, {
    data
  });
};

//危险废弃物出库 新增废液
export const addpull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/addLiquid`, {
    data
  });
};

//危险废弃物出库  删除
export const deletepull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/delete`, {
    data
  });
};

//危险废弃物出库  详情废液
export const queryDetailpull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/queryDetailLiquid`, {
    data
  });
};

//危险废弃物出库  详情固废
export const queryDetailpull2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/queryDetailSolid`, {
    data
  });
};

//危险废弃物出库  更新
export const updatepull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/updateLiquid`, {
    data
  });
};

//危险废弃物出库 批量出库
export const queryBatchOutInfopull = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteOut/queryBatchOutInfo`, {
    data
  });
};

//危险废弃物入库 出库新增查询查询列表
export const queryListPageForOutbound = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/queryListPageForOutbound`, {
    data
  });
};

//废弃物载出报表
export const wasteloadOutReport = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/waste/loadOutReport`, {
    data
  });
};

//危险废弃物入库 预测
export const hazardWasteInqueryWasteFuture = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/queryWasteFuture`, {
    data
  });
};

//危险废弃物入库 预测
export const hazardWasteInqueryWasteFuture2 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/liquid/queryWasteFuture`, {
    data
  });
};

//危险废弃物入库 预测
export const hazardWasteInqueryWasteFuture3 = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/generalWaste/solid/queryWasteFuture`, {
    data
  });
};

//危险废弃物入库 联系厂商用量查询
export const hazardWasteInqueryContactUseInfo = (data?: object) => {
  return http.request<ResultTable>("post", `/operation/api/v1/water/hazardWasteIn/queryContactUseInfo`, {
    data
  });
};
